package net.vkits.common.config;

import org.dozer.DozerBeanMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by ethan-liu on 16/5/2.
 */
@Configuration
public class DozerMapper {

    @Bean
    public DozerBeanMapper dozerBeanMapper() {
//        List<String> mappingFiles = Arrays.asList(
//                "dozer-global-configuration.xml",
//                "dozer-bean-mappings.xml",
//                "more-dozer-bean-mappings.xml"
//        );
//        DozerBeanMapper dozerBeanMapper = new DozerBeanMapper();
//        dozerBeanMapper.setMappingFiles(mappingFiles);
//        return dozerBeanMapper;
        return new DozerBeanMapper();
    }
}
